// 定义动画
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.styled-button {
  height: 40px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(24, 144, 255, 0.3);
  transition: all 0.3s ease;
  animation: breathe 3s infinite ease-in-out;
  animation-delay: 1s;
  
  &:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(24, 144, 255, 0.4);
  }
  
  &:active {
    animation: shake 0.5s ease-in-out;
  }
}

.styled-input {
  height: 40px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid #d9d9d9;
  
  &:hover, &:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .ant-input {
    font-size: 14px;
  }
  
  .anticon {
    color: #bfbfbf;
    transition: color 0.3s;
  }
  
  &:hover .anticon, &:focus .anticon {
    color: #40a9ff;
  }
}

.styled-password-input {
  height: 40px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid #d9d9d9;
  
  &:hover, &:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .ant-input {
    font-size: 14px;
  }
  
  .anticon {
    color: #bfbfbf;
    transition: color 0.3s;
  }
  
  &:hover .anticon, &:focus .anticon {
    color: #40a9ff;
  }
}

.form-item-wrapper {
  margin-bottom: 16px;
  position: relative;
  transition: all 0.3s ease;
  
  &:hover {
    transform: translateY(-2px);
  }
  
  label {
    display: inline-block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
  }
}

.captcha-image {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  cursor: pointer;
  object-fit: cover;
  transition: all 0.3s;
  
  &:hover {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  }
}

// 社交登录图标
.login-icon {
  font-size: 24px;
  margin: 0 8px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.45);
  transition: color 0.3s;
  
  &:hover {
    color: #1890ff;
  }
} 